package tech.lese.demo.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import tech.lese.demo.aop.ISomeAction;
import tech.lese.demo.config.AppConfig;

public class AOPTest {

	public static void main(String[] args) {
		 AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
	     ISomeAction action = context.getBean("someActionImpl",ISomeAction.class);
	     action.sayHi();

	}

}
